<?php
use Biz\service\activity\FlashSale as sFlashSale;
/**
 * @deprecated
 */
class SubscribeAction extends ActionPlugin
{

	public function main()
	{
		$flashId = $this->getRequest()->getPost('flash_id', 0);
		$goodsId  = $this->getRequest()->getPost('goods_id', 0);
		$isSubscribe = $this->getRequest()->getPost('is_subscribe', 1);

		sFlashSale::subScribeFlash($this->uid, $flashId, $goodsId, $isSubscribe);

		$this->setSuccess();
	}
}